package com.summer.shopping.controller;

import com.summer.shopping.domain.common.req.ReqHolder;
import com.summer.shopping.domain.table.Quan;
import com.summer.shopping.service.QuanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/quan")
@Slf4j
@CrossOrigin
public class QuanController {

    @Autowired
    QuanService quanService;


    @PostMapping
    public boolean addQuan(@RequestBody Quan quan){
        return quanService.save(quan);
    }




}
